package com.bizfx.events
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	import mx.collections.IList;

	public class ViewValidationResultEvent extends Event
	{
		public static const INVALID:String = "viewInvalid";
		
		public static const VALID:String = "viewValid";
		
		public function ViewValidationResultEvent(type:String, bubbles:Boolean = false,
												  cancelable:Boolean = false,
												  results:IList = null)
		{
			super(type, bubbles, cancelable);
			this._results = results;
		}
		
		private var _results:IList;

		public function get results():IList
		{
			if (this._results == null) {
				this._results = new ArrayCollection();
			}
			return _results;
		}

		public function set results(value:IList):void
		{
			_results = value;
		}
	}
}